package com.yanqu.xiuxian.crosssystem.manger.elementalbonds.entity;


import com.yanqu.xiuxian.config.elementalbonds.enums.ElementalBondsBlockEffectType;

public class ElementalBondsBlockEffect {

    private ElementalBondsBlockEffectType effectType;
    private int effectValue;
    private int times; // 活阎王，0可以附身1次，1不能再附身了

    public ElementalBondsBlockEffect(ElementalBondsBlockEffectType effectType) {
        this.effectType = effectType;
    }

    public ElementalBondsBlockEffect(ElementalBondsBlockEffectType effectType, int effectValue) {
        this.effectType = effectType;
        this.effectValue = effectValue;
    }

    public ElementalBondsBlockEffect(ElementalBondsBlockEffectType effectType, int effectValue, int times) {
        this.effectType = effectType;
        this.effectValue = effectValue;
        this.times = times;
    }

    public ElementalBondsBlockEffect clone() {
        return new ElementalBondsBlockEffect(getEffectType(), getEffectValue(), getTimes());
    }

    public void addEffectValue(int effectValue) {
        this.effectValue += effectValue;
    }

    public ElementalBondsBlockEffectType getEffectType() {
        return effectType;
    }

    public void setEffectType(ElementalBondsBlockEffectType effectType) {
        this.effectType = effectType;
    }

    public int getEffectValue() {
        return effectValue;
    }

    public void setEffectValue(int effectValue) {
        this.effectValue = effectValue;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

}
